package com.jzo2o.health.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jzo2o.health.model.domain.ReservationSetting;
import com.jzo2o.health.model.dto.request.ReservationSettingUpsertReqDTO;
import com.jzo2o.health.model.dto.response.ReservationDateResDTO;
import com.jzo2o.health.model.dto.response.ReservationSettingResDTO;
import org.springframework.web.multipart.MultipartFile;

import java.time.LocalDate;
import java.util.List;

public interface IReservationSettingService extends IService<ReservationSetting> {

    //按月查询预约设置
    List<ReservationSettingResDTO> getReservationSettingByMonthForAdmin(String date);

    //编辑预约设置
    void editNumberByDate(ReservationSettingUpsertReqDTO reservationSettingUpsertReqDTO);

    //上传预约设置文件
    void upload(MultipartFile file);

    //按月查询可预约日期
    ReservationDateResDTO getReservationDateByMonthForUser(String month);

    //取消订单恢复数据
    void recoverReservation(LocalDate orderDate);
}